Skip to main content
Transaction Receipts: Transactions return receipts indicating success or failure. Failed receipts are generated without transaction execution. Successful Transaction Response: A successful transaction provides a SentTransactionResponse. Always verify this response with the isSentTransactionResponse type guard before accessing the transaction hash.
Understanding Transaction Details Fields in Transaction Responses:
  • txHash: The hash of the transaction sent to the network.
  • receipt.logs: Logs emitted during the transaction.
  • receipt.status: Indicates if the transaction SUCCEEDED or FAILED.
  • receipt.revertReason: Explains why a transaction was reverted, if applicable.

Failed transaction response

An In-Game Wallet pre-empts failing transactions by simulating them on the network before actual submission. If the simulation fails, the transaction is not sent, and a FailedTransactionResponse is returned.